import request from '@/utils/request'

const userApi = {
  personDetail: '/boss/admin/info/detail',
  updatePerson: '/boss/admin/info/update',
  joinProject: '/boss/project/info/join'
}

// 获取个人信息
export function getPersonDetail (parameter) {
  return request({
    url: userApi.personDetail,
    method: 'post',
    data: parameter
  })
}
// 更新个人信息
export function updatePersonDetail (parameter) {
  return request({
    url: userApi.updatePerson,
    method: 'post',
    data: parameter
  })
}
// 加入项目
export function joinProject (parameter) {
  return request({
    url: userApi.joinProject,
    method: 'post',
    data: parameter
  })
}
